package com.charity.service;

import com.charity.model.CommonResponse;
import com.charity.pojo.Admin;
import com.charity.pojo.Donation;
import com.charity.pojo.Entry;
import com.charity.pojo.User;
import org.fisco.bcos.sdk.transaction.model.dto.CallResponse;

import java.util.List;

public interface AdminService {

    Admin admin(String userName, String password);

    Integer addAdmin(String userName, String password, String realName, String phone, String email, String createDate);

    Long adminId(String userName);

    Admin adminById(Long id);

    Integer updateAdmin(Long id, String userName, String password, String realName, String phone, String email);

    Integer deleteAdmin(Long id);

    List<User> users();

    List<Admin> admins();

    List<Donation> donations() throws Exception;

    List<Entry> entrys() throws Exception;

}
